#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class MediaReference
  {
    public MediaReference()
    {
      
	}

    
  
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  MediaReference item = (MediaReference)newContent;
      bool changed = false;

      
      if (mediaID != item.mediaID)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = mediaIDField;
        propertyChange.NewValue = item.mediaIDField;
        propertyChange.PropertyName = "mediaID";
        changes.Add(propertyChange);

		
        mediaIDField = item.mediaIDField;
      }


      return changed;
    }
  }
}

#endif